import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home/Home.vue'
import City from '../views/city/city.vue'
import Detail from '../views/Detail/detail.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path:'/city',
    name:'city',
    component:City
  },
  {
    path:'/detail/:id',
    name:'detail',
    component:Detail
  }
]

const router = new VueRouter({
  routes
})

export default router
